package com.sharainy.pojo;

import java.util.List;

/**
 * 区域类
 */
public class Area {
    private int id;
    private String name;
    private int parentnode;
    private int companyid;
    private long createtime;
    private List<Area> sonAreaList;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParentnode() {
        return parentnode;
    }

    public void setParentnode(int parentnode) {
        this.parentnode = parentnode;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    public long getCreatetime() {
        return createtime;
    }

    public void setCreateTime(long createTime) {
        this.createtime = createTime;
    }

    public List<Area> getSonAreaList() {
        return sonAreaList;
    }

    public void setSonAreaList(List<Area> sonAreaList) {
        this.sonAreaList = sonAreaList;
    }

    public int getCompanyid() {
        return companyid;
    }

    public void setCompanyid(int companyid) {
        this.companyid = companyid;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Area{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", parentnode=").append(parentnode);
        sb.append(", companyid=").append(companyid);
        sb.append(", createtime=").append(createtime);
        sb.append(", sonAreaList=").append(sonAreaList);
        sb.append('}');
        return sb.toString();
    }
}
